<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
    <link rel="stylesheet" href="css/font.css">
    <link rel="stylesheet" href="css/globe.css"/>
    <script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="js/common.js"></script>
    <style type="text/css">
        #search {
            width: 100%;
            /*height: 150px;*/
            position: relative;
            /*border: 1px solid red;*/
        }

        .body_page {
            position: relative;
            overflow: hidden
        }

        #rotation_chart {
            float: left;
            width: 80%;
            height: 500px;
        }

        #link_part {
            width: auto;
            height: 500px;
        }

        #link_part > div {
            width: auto;
            height: 25%;
            border-bottom: 1px solid #992f5d;
            background: #916343;
            text-align: center;
            line-height: 130px;
            font-size: 20px;
            color: #d2d2cf;
        }

        #link_part > div:hover {
            background: #e6e0e1;
            color: #171717;
            cursor: pointer;
        }

        section {
            position: relative;
            height: 100%;
            width: 100%;
        }

        #img {
            height: 100%;
            width: 100%;
            background-size: 100% 100%;
        }

        .left,
        .right {
            color: rgba(255, 255, 255, 0.7);
            font-size: 50px;
            font-weight: bolder;
            position: absolute;
            top: 50%;
        }

        .left {
            left: 0px;
            transform: translate(15%, -50%);
        }

        .right {
            right: 0px;
            transform: translate(-15%, -50%);
        }
    </style>
</head>
<body>
<jsp:include page="user_bar.jsp"/>
<div id="main_page">
    <div id="search">
        <jsp:include page="search_box.jsp"/>
        <p></p>
    </div>
    <div class="body_page">
        <div id="rotation_chart">
            <section>
                <span class="left iconfont icon-anniu_jiantouxiangzuo"></span>
                <img src="img/img1.jpeg" alt="" id="img">
                <span class="right iconfont icon-anniu-jiantouxiangyou"></span>
            </section>
            <script src="js/rotation.js"></script>
        </div>
        <div id="link_part">
            <div>
                <p>每日推荐</p>
            </div>
            <div onclick="tz_order();">
                <p>查看订单</p>
            </div>
            <div>
                <p>积分详情</p>
            </div>
            <div>
                <p>留言板</p>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    function tz_order() {
        location.href = "${pageContext.request.contextPath}/list_order.jsp";
    }
</script>
</html>
